﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DomainModel.Entities.Track>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Create</h2>

<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>

<% using (Html.BeginForm("Create", "Track", FormMethod.Post, new { enctype = "multipart/form-data" })) { %>

    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Track</legend>
        <%: Html.HiddenFor(model => model.TrackLastUpdate) %>
        <%: Html.HiddenFor(model => model.AlbumID) %>

      <%--  <div class="editor-label">
            <%: Html.LabelFor(model => model.AlbumID) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.AlbumID) %>
            <%: Html.ValidationMessageFor(model => model.AlbumID) %>
        </div>--%>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.TrackName) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.TrackName) %>
            <%: Html.ValidationMessageFor(model => model.TrackName) %>
        </div>

       <%-- <div class="editor-label">
            <%: Html.LabelFor(model => model.TrackFileName) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.TrackFileName) %>
            <%: Html.ValidationMessageFor(model => model.TrackFileName) %>
        </div>--%>
       <%--  <div class="editor-label">
            <%: Html.LabelFor(model => model.TrackMimeType) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.TrackMimeType) %>
            <%: Html.ValidationMessageFor(model => model.TrackMimeType) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.TrackContentSize) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.TrackContentSize) %>
            <%: Html.ValidationMessageFor(model => model.TrackContentSize) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.TrackLastUpdate) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.TrackLastUpdate) %>
            <%: Html.ValidationMessageFor(model => model.TrackLastUpdate) %>
        </div>--%>
          <% Html.RenderPartial("AudioUploadUserControl"); %>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
<% } %>

<div>
   <a href="<%: ViewData["referringUrl"].ToString() %>">Back to List</a> 
</div>

</asp:Content>

